﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopReplyStatById : BaseObject
    {
        //begin
        public TopReplyStatById(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _UserId;
        [Size(SizeAttribute.Unlimited)]
        public string UserId
        {
            get
            {
                return _UserId;
            }
            set
            {
                SetPropertyValue("UserId", ref _UserId, value);
            }
        }
        private long _ReplyNum;
        public long ReplyNum
        {
            get
            {
                return _ReplyNum;
            }
            set
            {
                SetPropertyValue("ReplyNum", ref _ReplyNum, value);
            }
        }
        private TopReplyStatOnDay _ReplyStatOnDay;
        [Association("ReplyStatOnDayReplyStatByIds", typeof(TopReplyStatOnDay))]
        public TopReplyStatOnDay ReplyStatOnDay
        {
            get
            {
                return _ReplyStatOnDay;
            }
            set
            {
                SetPropertyValue("ReplyStatOnDay", ref _ReplyStatOnDay, value);
            }
        }
        //end

    }
}
